package com.example.mapper;

import com.example.pojo.ConditionsQuery;
import com.example.pojo.Patient;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PatientMapper {
    int insert(@Param("patient") Patient patient);

    int update(@Param("patient") Patient patient);

    List<Patient> getPatientList(@Param("cq") ConditionsQuery conditionsQuery);

    Patient getPatientById(@Param("id") Integer id);

    int delPatientById(@Param("id") Integer id);

    int delBatch(@Param("ids")List<Integer> idList);
}
